package cn.iocoder.yudao.module.dating.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.math.BigDecimal;
import java.util.Arrays;

/**
 * <p>  </p>
 */
@AllArgsConstructor
@Getter
public enum NotePayEnum {
    ONE(1L, BigDecimal.valueOf(1.00 * 100), BigDecimal.valueOf(1), "1爱心试用套餐"),
    TWO(2L, BigDecimal.valueOf(8.88 * 100), BigDecimal.valueOf(10), "10爱心套餐"),
    THREE(3L, BigDecimal.valueOf(19.9 * 100), BigDecimal.valueOf(25), "25爱心套餐"),
    FOUR(4L, BigDecimal.valueOf(39.9 * 100), BigDecimal.valueOf(50), "50爱心套餐"),
    FIVE(5L, BigDecimal.valueOf(79.9 * 100), BigDecimal.valueOf(100), "100爱心套餐"),
    SIX(6L, BigDecimal.valueOf(168.8 * 100), BigDecimal.valueOf(200), "200爱心套餐"),
    ;
    final Long id;
    final BigDecimal money;
    final BigDecimal currency;
    final String des;

    public static NotePayEnum getById(Long payId) {
        return Arrays.stream(NotePayEnum.values()).filter(item -> item.getId().equals(payId)).findFirst().orElse(null);
    }
}
